var t = getApp();

Page({
    data: {
        tapStart: !1,
        show: !1,
        showCard: !1
    },
    onLoad: function(t) {
        this.setData({
            producer_id: t.producer_id
        }), this.getData();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    open_one: function() {
        this.setData({
            showCard: !0
        });
    },
    onClickLeft: function() {
        this.setData({
            showCard: !1
        });
    },
    getData: function() {
        var o = this, n = t.getNetAddresss("plugin.producer.frontend.producer.getProducerCenterById");
        t._getNetWork({
            url: n,
            data: {
                producer_id: o.data.producer_id
            },
            success: function(t) {
                var n = t.data;
                1 == n.result ? o.setData({
                    info: t.data.data.producer
                }) : wx.showToast({
                    title: n.msg,
                    icon: "none"
                });
            },
            fail: function(t) {
                console.log(t);
            }
        });
    }
});